<extend name="base/common" />

<block name="body">
<section class="container">
<div class="content-wrap">
	<div class="content excerpts">
		<!-- 推荐文章列表 -->
		<Article:position name="items" position="1" picrequired="1" limit="5">
		<div id="slider" class="carousel slide" data-ride="carousel">
			<ol class="carousel-indicators">
                <volist name="items" id="item">
				<li data-target="#slider" data-slide-to="{$key}" class="<if condition="$key eq 0">active</if>"></li>
                </volist>
			</ol>
			<div class="carousel-inner">
                <volist name="items" id="item">
				<div class="item <if condition="$key eq 0">active</if>">
                <a href="{:U('article/view', array('id'=>$item[id]))}"><img src="{$item[pic]}?imageView2/1/w/860/h/240"><span class="carousel-caption">{$item[title]}</span><span class="carousel-bg"></span></a>
				</div>
                </volist>
			</div>
			<a class="left carousel-control" href="#slider" role="button" data-slide="prev"><span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span></a>
			<a class="right carousel-control" href="#slider" role="button" data-slide="next"><span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span></a>
		</div>
		</Article:position>
		<!-- 推荐文章列表 -->

            <Article:list name="item" category="$category['id']">
				<include file="article/item" />
            </Article:list>

<if condition="$multi"><div class="list-page">{$multi}</div></if>
	</div>
</div>

<include file="base/sidebar" />
</section>
</block>